Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LITE-28560: Adding task to check and update product on commerce #106

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

akodelia
Copy link
Contributor

No description provided.

return True


def apply_ppr_and_delegate_to_marketplaces(deployment_request):
def check_and_update_product(deployment_request, cbc_service, **kwargs):
if not deployment_request.manually:
Copy link
Contributor

@Hairash Hairash Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[COD-C] Might be more convenient to write:

if deployment_request.manually:
    return True

to avoid this indent. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it in this way to not duplicate the return True at the end of the function. But don't mind change it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed offline

connect_ext_ppr/tasks_manager.py Outdated Show resolved Hide resolved
@akodelia akodelia force-pushed the feature/LITE-28560-Update-Product branch from cec3dc5 to d6c3123 Compare September 18, 2023 11:03
@akodelia akodelia merged commit 3d70714 into master Sep 19, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants